home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / dhcp3-client.postrm < prev    next >
Text File  |  2008-08-25  |  616b  |  29 lines

  1. #!/bin/sh -e
  2. #
  3. # $Id: dhcp3-client.postrm,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
  4. #
  5.  
  6. if [ "$1" = "purge" ]; then
  7.     # Remove lease database
  8.     rm -f /var/lib/dhcp3/dhclient.leases*
  9.  
  10.     # Try to remove directory
  11.     if [ -d /var/lib/dhcp3 ]; then
  12.         rmdir --ignore-fail-on-non-empty /var/lib/dhcp3/
  13.     fi
  14.  
  15.     if [ -e /etc/dhcp3/dhclient-script ]; then
  16.         rm /etc/dhcp3/dhclient-script
  17.         rmdir --ignore-fail-on-non-empty /etc/dhcp3
  18.     fi
  19.  
  20. fi
  21.  
  22. # Automatically added by dh_installdebconf
  23. if [ "$1" = purge ] && [ -e /usr/share/debconf/confmodule ]; then
  24.     . /usr/share/debconf/confmodule
  25.     db_purge
  26. fi
  27. # End automatically added section
  28.  
  29.